import Layout                  from "@/layout/index.vue"
import { createNameComponent } from "../createNode"

const route = [
    {
        path     : "/",
        component: Layout,
        redirect : "/dashboard",
        meta     : { title: "dashboard", icon: "sfont system-home", breadcrumb: false },
        cache    : false,
        children : [
            {
                path     : "dashboard",
                component: createNameComponent(() => import("@/views/main/dashboard/index.vue")),
                meta     : { title: "首页", icon: "sfont system-home", hideClose: true },
            },
        ],
    },
]

export default route
